package com.hoshiicloud.vericenter.controller;

import com.hoshiicloud.vericenter.result.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "企业验证接口",tags = "企业验证接口")
@RestController
@RequestMapping("/company")
public class CompanyVeriController {

	@ApiOperation("企业三要素验证")
	@RequestMapping(value = "/veriThreeKey", method = { RequestMethod.POST, RequestMethod.GET })
	@ApiImplicitParams({ @ApiImplicitParam(name = "companyName", value = "公司名称"),
			@ApiImplicitParam(name = "frName", value = "法人姓名") })
	public Response compThreeElementVeri(@RequestParam String companyName, @RequestParam String frName,
			@RequestParam String regNo) {

		return Response.success("尚未实现");
	}

	@ApiOperation("食品许可证查询")
	@RequestMapping(value = "/foodLicense", method = { RequestMethod.POST, RequestMethod.GET })
	@ApiImplicitParams({ @ApiImplicitParam(name = "regNo", value = "许可证号"),
			@ApiImplicitParam(name = "companyName", value = "公司名称") })
	public Response foodLicenseQuery(@RequestParam String regNo, @RequestParam String companyName) {
		return Response.success("尚未实现");
	}

}
